package com.woniuxy.bookmallmanagersrever.mapper;

import com.woniuxy.bookmallmanagersrever.entity.TRoleUrlPermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface TRoleUrlPermissionMapper extends Mapper<TRoleUrlPermission> {

    @Delete("delete from t_role_url_permission where role_id = #{id}")
    void deleteDataByRoleId(int id);

    void insertRoleAndPer(@Param("rid") Long id, @Param("checkedKeys") int[] checkedKeys);
}